package status

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

var Dataerrors = 203
var Success = 200
var Exit = 204
var Fieldsmissing = 205

var Illegal = 403

func main() {

}
func Islogin(c *gin.Context) bool {
	s, _ := c.Get("status")
	if s == 401 {
		c.JSON(http.StatusOK, gin.H{
			"code": Exit,
			"msg":  "err",
			"data": "请重新登录,谢谢",
		})
		return false
	}
	return true
}
